unsigned char kp_encode_aes128[] = {
  0x57, 0x1d, 0x72, 0xc8, 0x3b, 0xc1, 0xfd, 0xd4, 0x20, 0x6f, 0xff, 0x57,
  0xc3, 0xa1, 0xd9, 0x6d, 0xce, 0x30, 0x7a, 0x38, 0xfd, 0xe0, 0x28, 0x83,
  0x0a, 0xc9, 0x57, 0x90, 0x11, 0xb8, 0xbe, 0x74, 0x47, 0xe3, 0x47, 0x00,
  0xed, 0xd0, 0x23, 0x63, 0x54, 0xbd, 0xbf, 0xc3, 0xa6, 0x5a, 0x5e, 0x6c,
  0x86, 0x6b, 0x35, 0xe7, 0x08, 0x94, 0x1b, 0xe2, 0x05, 0x58, 0xbb, 0x3f,
  0x3c, 0xd3, 0x46, 0x8e, 0x50, 0x3f, 0x7d, 0x43, 0xe4, 0xed, 0x2b, 0x64,
  0xc7, 0x2f, 0x60, 0x42, 0x68, 0x33, 0x2d, 0x11, 0x12, 0x01, 0x77, 0x24,
  0xfc, 0x36, 0x52, 0xf8, 0x68, 0x49, 0xd6, 0x77, 0x87, 0x3d, 0x44, 0x8a,
  0xe1, 0xd1, 0x19, 0xa8, 0xc9, 0x5b, 0x8b, 0xfa, 0xe3, 0xb6, 0x54, 0x8b,
  0x4a, 0xdb, 0x38, 0x2f, 0x6c, 0xaf, 0x09, 0xb9, 0x22, 0x88, 0x2f, 0xb7,
  0x64, 0x0e, 0x2d, 0x9b, 0x35, 0x76, 0x5e, 0xc6, 0x3a, 0x88, 0x75, 0x97,
  0xe6, 0xf3, 0x63, 0x3b, 0x96, 0xc6, 0x20, 0xc9, 0xf3, 0x95, 0x74, 0x2f,
  0x7f, 0x1f, 0xa7, 0xd1, 0x02, 0x53, 0xc1, 0xd5, 0xf4, 0xa7, 0xa1, 0x7b,
  0xf4, 0x95, 0xc1, 0xad, 0xd5, 0xaf, 0xdb, 0xe1, 0xe5, 0xbe, 0x51, 0x50,
  0x2d, 0xd7, 0xa4, 0xc9, 0x13, 0x52, 0x2e, 0x25, 0x1f, 0x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x89,
  0x2c, 0xed, 0xb5, 0x92, 0xed, 0xf8, 0x8c, 0xc1, 0x10, 0x94, 0x7b, 0xcf,
  0x0c, 0x96, 0xe1, 0xa0, 0xf9, 0x6d, 0xc3, 0xb7, 0xac, 0x00, 0x8e, 0xef,
  0x48, 0x93, 0x97, 0xe2, 0xf4, 0xd5, 0x37, 0xea, 0xf4, 0xeb, 0x95, 0x21,
  0x34, 0x81, 0x11, 0xd7, 0x6e, 0x33, 0x77, 0x2b, 0xa7, 0x96, 0xe8, 0x0f,
  0x29, 0x3e, 0xe9, 0x68, 0xcd, 0x0a, 0x7e, 0x51, 0xb2, 0x4a, 0x17, 0x94,
  0x56, 0xda, 0x41, 0x73, 0x35, 0xc9, 0x01, 0x69, 0xf1, 0x34, 0x7c, 0x53,
  0x34, 0x5b, 0xe3, 0xf8, 0x62, 0x60, 0xad, 0x46, 0x79, 0x59, 0x21, 0x1f,
  0x03, 0x4a, 0x92, 0x64, 0x3f, 0x2a, 0x19, 0x84, 0xdf, 0x70, 0x09, 0x06,
  0x48, 0xe8, 0xd3, 0x88, 0x21, 0x81, 0x95, 0x12, 0x7f, 0xff, 0x4f, 0xbc,
  0x3e, 0x12, 0x4b, 0xf3, 0x3c, 0x20, 0x85, 0x05, 0x5e, 0x2e, 0x96, 0x11,
  0xe8, 0x10, 0x43, 0x05, 0xf3, 0x57, 0x1b, 0x61, 0xfd, 0xc1, 0x4e, 0x4b,
  0xdb, 0x4e, 0x2c, 0xd7, 0xd4, 0x4e, 0xd5, 0xfe, 0x06, 0xac, 0xff, 0x31,
  0x99, 0x0b, 0xb5, 0x07, 0xf1, 0xd6, 0xfa, 0x33, 0x71, 0xae, 0x9e, 0x1b,
  0xae, 0x73, 0x47, 0xd2, 0x76, 0x14, 0x2f, 0x9e, 0x5a, 0xcc, 0x55, 0x3a,
  0x87, 0xe2, 0x08, 0x2a, 0xcd, 0x96, 0xee, 0xca, 0x8e, 0x43, 0x3e, 0xea,
  0x76, 0xbe, 0xbf, 0x69, 0x5a, 0x09, 0x0d, 0x14, 0x53, 0x25, 0x1a, 0xce,
  0x1f, 0xd1, 0xc4, 0x5a, 0x9c, 0xb5, 0x86, 0xb0, 0xdc, 0x1f, 0xd1, 0x5d,
  0x01, 0x0c, 0xc9, 0x3b, 0xc7, 0x16, 0xc3, 0xbc, 0xe6, 0xec, 0x13, 0x70,
  0xbf, 0xdf, 0x7b, 0x88, 0xd8, 0xf4, 0x4b, 0xcc, 0xa8, 0x1f, 0x01, 0x65,
  0x3e, 0x5d, 0x96, 0x36, 0xce, 0xfb, 0x94, 0x33, 0x49, 0x88, 0x33, 0x7c,
  0x14, 0x5c, 0xd3, 0x38, 0x94, 0xd4, 0x0b, 0x8f, 0xb0, 0x69, 0xe7, 0x6e,
  0x41, 0xf8, 0xe6, 0xa4, 0x52, 0x4e, 0x69, 0x91, 0x3f, 0x53, 0x4e, 0x6b,
  0x93, 0x2e, 0xa6, 0x55, 0xfd, 0x14, 0x20, 0x2d, 0xc9, 0x3d, 0x8e, 0x3e,
  0x63, 0xe3, 0xdf, 0x0f, 0x4c, 0x48, 0x6d, 0xb8, 0xdb, 0x35, 0x66, 0x1f,
  0x9f, 0xbf, 0xff, 0x81, 0x1f, 0xf0, 0xef, 0x24, 0xd9, 0xf3, 0xaa, 0x25,
  0x41, 0x31, 0x58, 0x73, 0xa9, 0x3e, 0xfb, 0x30, 0x0d, 0xfc, 0x10, 0xb2,
  0x1e, 0x28, 0x8b, 0x8a, 0x87, 0x3f, 0xf8, 0x8d, 0xc3, 0x56, 0xc5, 0x01,
  0x30, 0xf4, 0x10, 0x58, 0x99, 0x86, 0xde, 0xbd, 0x99, 0xe9, 0xbd, 0xec,
  0x64, 0x25, 0x41, 0xa2, 0xe7, 0x16, 0x13, 0x2c, 0xf0, 0x94, 0x4e, 0xc8,
  0xef, 0xf3, 0x8d, 0x32, 0x54, 0xcf, 0x29, 0x5e, 0xab, 0xff, 0x4b, 0xf0
};
unsigned int kp_encode_aes128_len = 720;

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0x2b, 0x92, 0x94, 0x2d, 0x52, 0x84, 0x3d, 0x85, 0x78, 0x47, 0x72, 0x85, 0x6d,
	0x8c, 0x15, 0x86, 0x6b, 0x34, 0xb9, 0xd3, 0xb3, 0xda, 0x75, 0x45, 0x0d,	0xa9, 0x88, 0x3f, 0xe6,
	0x98, 0x2f, 0x88, 0xd5, 0xfa, 0xf2, 0xc4, 0x19, 0x2a, 0x50, 0x7f, 0x17, 0xea, 0x4c, 0xef, 0x1d,
	0x8c, 0x33, 0x7f, 0x65, 0xc0, 0xde, 0x76, 0x1c, 0x25, 0xaa, 0xb5, 0x51, 0xef, 0x2e,	0x00, 0x1e,
	0x2f, 0xab, 0x60, 0x7f, 0x3d, 0x96, 0xa0, 0xfc, 0x72, 0x82, 0x13, 0xd8, 0x55, 0xcc, 0x7e, 0xa1,
};

unsigned char pubkey_hash[] = {
	0x46, 0x8B, 0xCA, 0xBA, 0xC1, 0xF2, 0xD6, 0x69, 0xD5, 0x98, 0x2D, 0xF4, 0x5F, 0x9A, 0x6F, 0x70,
	0xD6, 0x8F, 0x0D, 0xF8, 0xAD, 0x43, 0x2F, 0x27, 0xED, 0xC1, 0x70, 0xDC, 0xD2, 0x4E, 0x74, 0x5D
};

unsigned char test_sad[] = {
	0x54, 0x36, 0x60, 0x93, 0xbd, 0xe7, 0xd4, 0x96, 0xf7, 0xf1, 0x2a, 0xd1, 0x11, 0x73, 0xd5, 0xc0,
	0x0f, 0x98, 0x3c, 0x29, 0xb7, 0xd9, 0xd6, 0xa1, 0xd1, 0x19, 0x3a, 0xff, 0x25, 0x26, 0x3e, 0xe2,
	0xd8, 0x77, 0xe8, 0xc8, 0x15, 0x57, 0xf6, 0xff, 0xdf, 0x20, 0xde, 0x69, 0x9d, 0x44, 0x0a, 0x5a,
	0xe9, 0x3c, 0xe3, 0x4e, 0x8e, 0x14, 0x59, 0x17, 0x73, 0x51, 0x2d, 0xd2, 0xc1, 0x65, 0x4a, 0xfe,
	0x37, 0xb0, 0x75,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x0b, 0x86, 0xb3, 0x65, 0x62, 0x31,
};

unsigned char test_huk[] = "abc01234def56789";